home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 020 / pack / poster < prev    next >
Text File  |  1995-03-17  |  3KB  |  93 lines

  1. Article 1451 of net.micro.amiga:
  2. Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site unisoft.UUCP
  3. Path: unisoft!lll-lcc!lll-crg!styx!lognet2!seismo!caip!daemon
  4. From: daemon@caip.UUCP
  5. Newsgroups: net.micro.amiga
  6. Subject: getting the most out of your C disks
  7. Message-ID: <1902@caip.RUTGERS.EDU>
  8. Date: 16 Apr 86 23:32:22 GMT
  9. Date-Received: 18 Apr 86 11:38:27 GMT
  10. Sender: daemon@caip.RUTGERS.EDU
  11. Organization: Rutgers Univ., New Brunswick, N.J.
  12. Lines: 1331
  13.  
  14. From: "DICKSON, JEFF S." <jdickson@jpl-milvax.arpa>
  15.  
  16. From:     26-JUL-**** 15:12
  17. To:    
  18. Subj:    
  19.  
  20.     Back in November '85, someone posted a message to the effect 
  21. that they had run their Lattice 'C' include files through some kind
  22. of text filter and freed up a sizable amount of disk space for other
  23. things.[:-)] 
  24.  
  25.     Well to make a long story short, that person never did make
  26. the "fabulous filter" available to us netters [:-(]. So when I pur-
  27. chased my Lattice 'C' compiler, I decided to write my own text filter.
  28.  
  29.     What the text filter, presented here, does to a 'C' or header
  30. file is quite straight-forward. It basically removes all the un-
  31. neccesary white-space characters (newlines, spaces, tabs, etc) and
  32. comments. For some 'C' and header files, this can mean a substantial
  33. reduction in the file's size - thus freeing up more space for your
  34. stuff. 
  35.  
  36.     While lots of comments in any 'C' or header file are a def-
  37. inite plus, after you've printed them out for your own personal ref-
  38. erence - there really is no need "waste the space" on them. And let
  39. me tell you... there are some pretty hefty include files on the 
  40. Lattice 'C' disk. 
  41.  
  42.     This program will enable you to reclaim about 17 percent of
  43. the space the Lattice 'C' include files currently use up. This works
  44. out to be around 146,432 bytes or 286 blocks. 
  45.  
  46.     The command format for "pack" is as follows:
  47.  
  48.     pack [-p<pathname prefix string>] <file spec> [etc...]
  49.  
  50.     The "-p" option is used to specify the directory the filename(s) 
  51. on the command line reside in. This is only required if you are not
  52. already logged into that directory. 
  53.  
  54.     So, inorder to "pack" all the include files on your Lattice 'C'
  55. disk...you would type:
  56.  
  57.     pack -pcdisk:include/  clib/*.h  libraries/*.h  workbench/*.h
  58. exec/*.h  graphics/*.h  intuition/*.h  resources/*.h  lattice/*.h
  59. hardware/*.h  devices/*.h
  60.  
  61.     (note: my Lattice 'C' disk is named "cdisk")
  62.  
  63.     Once started, the program will sequentially tell you which file 
  64. is currently being packed and the number of bytes that were deleted. 
  65. When the program is finished, the total number of bytes freed is displayed.
  66. This is approximately the number of bytes you now have at your disposal
  67. (+/- 511).
  68.  
  69.     The program was written to make use of the wild card expansion
  70. routines contained in Rick Schaeffer's unix style directory utility, "wildls"
  71. -- that was posted to the net some time ago. For the sake of completeness
  72. and brevity, I have chosen only to included the modules from his source that
  73. are of interest here. If you want the whole thing, it's probably available at
  74. one of the anonymous ftp sites.
  75.  
  76.     Here are the steps for compiling and linking "pack":
  77.  
  78.     cd cdisk:
  79.     cc1: -iinclude/ ram:pack
  80.     cc2: ram:pack
  81.     link: from lib/c.o+ram:pack.o+wildexp.o library lib/lc.lib+
  82. lib/amiga.lib to ram:pack
  83.  
  84.     I recommend compiling and linking the program in ram: as it
  85. hastens the whole process. 
  86.  
  87.     One more thing, everything compiles, links, and runs just fine
  88. using Lattice's 'C' compiler version 3.03. Have fun!
  89.  
  90. ARPA:        JDICKSON@JPL-MILVAX
  91. COMPUSERVE:    [76657,630]
  92.  
  93.